package com.halixun.d2app.utils;

import com.bumptech.glide.Priority;
import com.bumptech.glide.load.DecodeFormat;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.bumptech.glide.request.RequestOptions;

/**
 * @ProjectName: D2App
 * @Package: com.halixun.d2app.utils
 * @ClassName: GlideOptions
 * @Description: java类作用描述
 * @Author: hdx
 * @CreateDate: 2019/11/29 9:53
 * @UpdateUser: hdx
 * @UpdateDate: 2019/11/29 9:53
 * @UpdateRemark: 更新说明：
 * @Version: 1.0
 */
public class GlideOptions {
    public static RequestOptions getGlideRequestOptions() {
        return new RequestOptions()
                .priority(Priority.HIGH)
                .format(DecodeFormat.PREFER_RGB_565)
                .diskCacheStrategy(DiskCacheStrategy.RESOURCE);
    }
}
